import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const MEMBER: AppRouteRecordRaw = {
    path: '/member',
    name: 'member',
    component: DEFAULT_LAYOUT,
    meta: {
        locale: 'menu.member',
        requiresAuth: true,
        icon: 'icon-user-group',
        order: 800,
    },
    children: [
        {
            path: 'index',
            name: 'MemberIndex',
            component: () => import('@/views/member/index.vue'),
            meta: {
                locale: 'menu.member.index',
                requiresAuth: true,
                roles: ['*'],
                icon: 'icon-align-left',
            },
        },
        {
            path: 'address',
            name: 'MemberAddress',
            component: () => import('@/views/member/address.vue'),
            meta: {
                locale: 'menu.member.address',
                requiresAuth: true,
                roles: ['*'],
                icon: 'icon-location',
            },
        }
    ],
};

export default MEMBER;
